#include "regEx.h"
#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(int argc, char **argv)
{
    regExprHandler regexp;
    regexp.SetRegEx("abb");

    int pos=0;
    std::string pattern;
    if (regexp.FindFirst("abfooabb", pos, pattern))
        std::cout << "found at" << pos << std::endl;
    else
        std::cout << "could not find" << std::endl;
	if (regexp.FindNext(pos, pattern))
		 std::cout << "found THEN at" << pos << std::endl;
    else
        std::cout << "could not find later" << std::endl;
    return 0;
}